package com.example.pcl.constant;

public class StatusCodeConstants {
    // 成功状态码
    public static final int SUCCESS = 200;
    public static final String SUCCESS_MESSAGE = "成功";

    // 错误的请求状态码
    public static final int BAD_REQUEST = 400;
    public static final String BAD_REQUEST_MESSAGE = "错误的请求";

    // 未授权状态码
    public static final int UNAUTHORIZED = 401;
    public static final String UNAUTHORIZED_MESSAGE = "未授权";

    // 禁止访问状态码
    public static final int FORBIDDEN = 403;
    public static final String FORBIDDEN_MESSAGE = "禁止访问";

    // 未找到资源状态码
    public static final int NOT_FOUND = 404;
    public static final String NOT_FOUND_MESSAGE = "未找到资源";

    // 服务器内部错误状态码
    public static final int INTERNAL_SERVER_ERROR = 500;
    public static final String INTERNAL_SERVER_ERROR_MESSAGE = "服务器内部错误";
}
